import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import TestView from '../views/TestView.vue'
import svgView from '../views/svg.vue'
import ElementPlusDemo from '../components/ElementPlusDemo.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: HomeView
  },
  {
    path: '/test',
    name: 'test',
    component: TestView
  },
  {
    path: '/svg',
    name: 'svg',
    component: svgView
  },
  {
    path: '/element-plus',
    name: 'ElementPlus',
    component: ElementPlusDemo
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
